﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UFIDA.U9.ISV.PUB.CustZLAPI.Model
{
    /// <summary>
    /// 查询参数
    /// </summary>
    public class PramAPIModel
    {
        /// <summary>
        /// 编码
        /// </summary>
        public List<Data> data = new List<Data>();     
        /// <summary>
        /// 签收日期
        /// </summary>
        public DateTime SignDate { get; set; }    
        /// <summary>
        /// 签收人
        /// </summary>
        public string Signer { get; set; }       
    }
    /// <summary>
    /// 签收信息
    /// </summary>
    public class Data
    {
       
        /// <summary>
        /// 出货行号
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 签收数量
        /// </summary>
        public decimal num { get; set; }
    }
    /// <summary>
    /// 返回结果
    /// </summary>
    public class ResaultData<T>
    {
        /// <summary>
        /// 错误集合
        /// </summary>
        public List<FailData> FailData = new List<FailData>();
        /// <summary>
        /// 返回集合
        /// </summary>
        public T Data { get; set; }
    }
    /// <summary>
    /// 错误数据
    /// </summary>
    public class FailData : Data
    {
        public FailData(Data d)
        {            
            this.id = d.id;
            this.num = d.num;
        }
        public string ErrMsg { get; set; }
    }
}
